#pragma once
#ifndef _H_ELEMENT_MAP_H_097652730
#define _H_ELEMENT_MAP_H_097652730
#include "DataStruct.h"


class CUserList
{
private:
	static std::map<CString,MAP_Element> UserList; 
public:
	BOOL InsertElement(LPCTSTR strIP,const MAP_Element element)
	{
		std::pair<std::map<CString,MAP_Element>::iterator,bool> ret = UserList.insert(std::make_pair(strIP,element));
		if (! ret.second)
		{
			return FALSE;
		}
		return TRUE;
	}
	void DeleteElement(LPCTSTR strKey)
	{
		UserList.erase(strKey);
	}
};


std::map<CString,MAP_Element> CUserList::UserList; 


#endif